//
//  ImageCell.m
//  项目1 CLCMovie
//
//  Created by huiwenjiaoyu on 15/7/22.
//  Copyright (c) 2015年 CLC. All rights reserved.
//

#import "ImageCell.h"
#import "UIImageView+WebCache.h"
@implementation ImageCell
//- (instancetype)initWithFrame:(CGRect)frame
//{
//    self = [super initWithFrame:frame];
//    if(self)
//    {
//        
//    }
//    return self;
//}

//- (void)setImageModal:(ImageModal *)imageModal
//{
//    _imageModal = imageModal;
//    [self setNeedsLayout];
//}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
    NSURL* url = [NSURL URLWithString:_imageModal.image];
    
    _imageView.layer.masksToBounds = YES;
    [_imageView.layer setCornerRadius:20];
    [_imageView.layer setBorderWidth:1];
    [_imageView.layer setBorderColor:[UIColor whiteColor].CGColor];
    
    
    
    [_imageView sd_setImageWithURL:url];
    [self addSubview:_imageView];
    
}
@end
